package com.yhou.sharding.mapper;

import com.yhou.sharding.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author houyong
 * @ProjectName sharding_demo
 * @Description:
 * @date 2018/11/16 上午11:11
 */
@Mapper
public interface UserMapper {

    int save(User user);

    User findOne(@Param("id") Long id);

    int bacthsave(@Param("list") List<User> list);
}
